package com.mlethe.android.demo.seattable.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class MovieInfo implements Parcelable {
    /**
     * cineMovieId : 19
     * cineMovieNum : 001304042014
     * movieName : 心花路放（巨幕）
     * movieSubtitle : 中文
     * movieLanguage : 国语
     * movieFormat : 数字
     * movieDimensional : 2D
     * movieSize : 中国巨幕
     * joinStartTime :
     * joinEndTime :
     */

    private String cineMovieId;
    private String hallIds; // 放映场次id，多个id用‘,’号隔开
    private String cineMovieNum;
    private String movieName;
    private String movieSubtitle;
    private String movieLanguage;
    private String movieFormat;
    private String movieDimensional;
    private String movieSize;
    private String joinStartTime;
    private String joinEndTime;
    private long time;  // 播放时间

    public String getCineMovieId() {
        return cineMovieId;
    }

    public void setCineMovieId(String cineMovieId) {
        this.cineMovieId = cineMovieId;
    }

    public String getHallIds() {
        return hallIds;
    }

    public void setHallIds(String hallIds) {
        this.hallIds = hallIds;
    }

    public String getCineMovieNum() {
        return cineMovieNum;
    }

    public void setCineMovieNum(String cineMovieNum) {
        this.cineMovieNum = cineMovieNum;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getMovieSubtitle() {
        return movieSubtitle;
    }

    public void setMovieSubtitle(String movieSubtitle) {
        this.movieSubtitle = movieSubtitle;
    }

    public String getMovieLanguage() {
        return movieLanguage;
    }

    public void setMovieLanguage(String movieLanguage) {
        this.movieLanguage = movieLanguage;
    }

    public String getMovieFormat() {
        return movieFormat;
    }

    public void setMovieFormat(String movieFormat) {
        this.movieFormat = movieFormat;
    }

    public String getMovieDimensional() {
        return movieDimensional;
    }

    public void setMovieDimensional(String movieDimensional) {
        this.movieDimensional = movieDimensional;
    }

    public String getMovieSize() {
        return movieSize;
    }

    public void setMovieSize(String movieSize) {
        this.movieSize = movieSize;
    }

    public String getJoinStartTime() {
        return joinStartTime;
    }

    public void setJoinStartTime(String joinStartTime) {
        this.joinStartTime = joinStartTime;
    }

    public String getJoinEndTime() {
        return joinEndTime;
    }

    public void setJoinEndTime(String joinEndTime) {
        this.joinEndTime = joinEndTime;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.cineMovieId);
        dest.writeString(this.hallIds);
        dest.writeString(this.cineMovieNum);
        dest.writeString(this.movieName);
        dest.writeString(this.movieSubtitle);
        dest.writeString(this.movieLanguage);
        dest.writeString(this.movieFormat);
        dest.writeString(this.movieDimensional);
        dest.writeString(this.movieSize);
        dest.writeString(this.joinStartTime);
        dest.writeString(this.joinEndTime);
        dest.writeLong(this.time);
    }

    public MovieInfo() {
    }

    protected MovieInfo(Parcel in) {
        this.cineMovieId = in.readString();
        this.hallIds = in.readString();
        this.cineMovieNum = in.readString();
        this.movieName = in.readString();
        this.movieSubtitle = in.readString();
        this.movieLanguage = in.readString();
        this.movieFormat = in.readString();
        this.movieDimensional = in.readString();
        this.movieSize = in.readString();
        this.joinStartTime = in.readString();
        this.joinEndTime = in.readString();
        this.time = in.readLong();
    }

    public static final Creator<MovieInfo> CREATOR = new Creator<MovieInfo>() {
        @Override
        public MovieInfo createFromParcel(Parcel source) {
            return new MovieInfo(source);
        }

        @Override
        public MovieInfo[] newArray(int size) {
            return new MovieInfo[size];
        }
    };
}
